package com.lagou.page.feign;

import com.lagou.goods.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author Fxz
 * @version 1.0
 * @date 2021-10-07 15:28
 */
@RequestMapping("/sku")
@FeignClient("goods")
public interface SkuFeign {

    /**
     * 通过SpuId查询SkuList
     *
     * @param spuId
     * @return
     */
    @GetMapping("/findListBySpuId/{spuId}")
    public List<Sku> findListBySpuId(@PathVariable String spuId);
}
